package com.fjnu.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.fjnu.dao.IUnitDao;
import com.fjnu.dao.common.BaseDaoImpl;
import com.fjnu.entities.Unit;
@Repository("unitDao")
public class UnitDao extends BaseDaoImpl<Unit> implements IUnitDao {

	@Override
	public List<Unit> findUnit() {
		String hql="from Unit";
		List<Unit> list= findByHQL(hql);
		return list;
	}

	@Override
	public void save(Unit entity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Unit entity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delUnit(int id) {
		delete(id);
		
	}

}
